package top.bluesword.laboratory.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.bluesword.laboratory.transfer.BaseDataDTO;

/**
 * @author 李林峰
 */
@RestController
@RequestMapping("swagger/v3")
@Tag(name = "Swagger示例")
public class SwaggerDemoController {

	@GetMapping("demo")
	@Operation(description = "最简测试")
	public BaseDataDTO demo(BaseDataDTO baseData) {
		return baseData;
	}

	@GetMapping("demo-void")
	@Operation(description = "最简测试")
	public void demo() {
	}

}
